package com.example.demo.entity;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class MilestoneExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public MilestoneExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andMilestoneIdIsNull() {
            addCriterion("MILESTONE_ID is null");
            return (Criteria) this;
        }

        public Criteria andMilestoneIdIsNotNull() {
            addCriterion("MILESTONE_ID is not null");
            return (Criteria) this;
        }

        public Criteria andMilestoneIdEqualTo(Integer value) {
            addCriterion("MILESTONE_ID =", value, "milestoneId");
            return (Criteria) this;
        }

        public Criteria andMilestoneIdNotEqualTo(Integer value) {
            addCriterion("MILESTONE_ID <>", value, "milestoneId");
            return (Criteria) this;
        }

        public Criteria andMilestoneIdGreaterThan(Integer value) {
            addCriterion("MILESTONE_ID >", value, "milestoneId");
            return (Criteria) this;
        }

        public Criteria andMilestoneIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("MILESTONE_ID >=", value, "milestoneId");
            return (Criteria) this;
        }

        public Criteria andMilestoneIdLessThan(Integer value) {
            addCriterion("MILESTONE_ID <", value, "milestoneId");
            return (Criteria) this;
        }

        public Criteria andMilestoneIdLessThanOrEqualTo(Integer value) {
            addCriterion("MILESTONE_ID <=", value, "milestoneId");
            return (Criteria) this;
        }

        public Criteria andMilestoneIdIn(List<Integer> values) {
            addCriterion("MILESTONE_ID in", values, "milestoneId");
            return (Criteria) this;
        }

        public Criteria andMilestoneIdNotIn(List<Integer> values) {
            addCriterion("MILESTONE_ID not in", values, "milestoneId");
            return (Criteria) this;
        }

        public Criteria andMilestoneIdBetween(Integer value1, Integer value2) {
            addCriterion("MILESTONE_ID between", value1, value2, "milestoneId");
            return (Criteria) this;
        }

        public Criteria andMilestoneIdNotBetween(Integer value1, Integer value2) {
            addCriterion("MILESTONE_ID not between", value1, value2, "milestoneId");
            return (Criteria) this;
        }

        public Criteria andMilestoneNameIsNull() {
            addCriterion("MILESTONE_NAME is null");
            return (Criteria) this;
        }

        public Criteria andMilestoneNameIsNotNull() {
            addCriterion("MILESTONE_NAME is not null");
            return (Criteria) this;
        }

        public Criteria andMilestoneNameEqualTo(String value) {
            addCriterion("MILESTONE_NAME =", value, "milestoneName");
            return (Criteria) this;
        }

        public Criteria andMilestoneNameNotEqualTo(String value) {
            addCriterion("MILESTONE_NAME <>", value, "milestoneName");
            return (Criteria) this;
        }

        public Criteria andMilestoneNameGreaterThan(String value) {
            addCriterion("MILESTONE_NAME >", value, "milestoneName");
            return (Criteria) this;
        }

        public Criteria andMilestoneNameGreaterThanOrEqualTo(String value) {
            addCriterion("MILESTONE_NAME >=", value, "milestoneName");
            return (Criteria) this;
        }

        public Criteria andMilestoneNameLessThan(String value) {
            addCriterion("MILESTONE_NAME <", value, "milestoneName");
            return (Criteria) this;
        }

        public Criteria andMilestoneNameLessThanOrEqualTo(String value) {
            addCriterion("MILESTONE_NAME <=", value, "milestoneName");
            return (Criteria) this;
        }

        public Criteria andMilestoneNameLike(String value) {
            addCriterion("MILESTONE_NAME like", value, "milestoneName");
            return (Criteria) this;
        }

        public Criteria andMilestoneNameNotLike(String value) {
            addCriterion("MILESTONE_NAME not like", value, "milestoneName");
            return (Criteria) this;
        }

        public Criteria andMilestoneNameIn(List<String> values) {
            addCriterion("MILESTONE_NAME in", values, "milestoneName");
            return (Criteria) this;
        }

        public Criteria andMilestoneNameNotIn(List<String> values) {
            addCriterion("MILESTONE_NAME not in", values, "milestoneName");
            return (Criteria) this;
        }

        public Criteria andMilestoneNameBetween(String value1, String value2) {
            addCriterion("MILESTONE_NAME between", value1, value2, "milestoneName");
            return (Criteria) this;
        }

        public Criteria andMilestoneNameNotBetween(String value1, String value2) {
            addCriterion("MILESTONE_NAME not between", value1, value2, "milestoneName");
            return (Criteria) this;
        }

        public Criteria andMilestoneContentIsNull() {
            addCriterion("MILESTONE_CONTENT is null");
            return (Criteria) this;
        }

        public Criteria andMilestoneContentIsNotNull() {
            addCriterion("MILESTONE_CONTENT is not null");
            return (Criteria) this;
        }

        public Criteria andMilestoneContentEqualTo(String value) {
            addCriterion("MILESTONE_CONTENT =", value, "milestoneContent");
            return (Criteria) this;
        }

        public Criteria andMilestoneContentNotEqualTo(String value) {
            addCriterion("MILESTONE_CONTENT <>", value, "milestoneContent");
            return (Criteria) this;
        }

        public Criteria andMilestoneContentGreaterThan(String value) {
            addCriterion("MILESTONE_CONTENT >", value, "milestoneContent");
            return (Criteria) this;
        }

        public Criteria andMilestoneContentGreaterThanOrEqualTo(String value) {
            addCriterion("MILESTONE_CONTENT >=", value, "milestoneContent");
            return (Criteria) this;
        }

        public Criteria andMilestoneContentLessThan(String value) {
            addCriterion("MILESTONE_CONTENT <", value, "milestoneContent");
            return (Criteria) this;
        }

        public Criteria andMilestoneContentLessThanOrEqualTo(String value) {
            addCriterion("MILESTONE_CONTENT <=", value, "milestoneContent");
            return (Criteria) this;
        }

        public Criteria andMilestoneContentLike(String value) {
            addCriterion("MILESTONE_CONTENT like", value, "milestoneContent");
            return (Criteria) this;
        }

        public Criteria andMilestoneContentNotLike(String value) {
            addCriterion("MILESTONE_CONTENT not like", value, "milestoneContent");
            return (Criteria) this;
        }

        public Criteria andMilestoneContentIn(List<String> values) {
            addCriterion("MILESTONE_CONTENT in", values, "milestoneContent");
            return (Criteria) this;
        }

        public Criteria andMilestoneContentNotIn(List<String> values) {
            addCriterion("MILESTONE_CONTENT not in", values, "milestoneContent");
            return (Criteria) this;
        }

        public Criteria andMilestoneContentBetween(String value1, String value2) {
            addCriterion("MILESTONE_CONTENT between", value1, value2, "milestoneContent");
            return (Criteria) this;
        }

        public Criteria andMilestoneContentNotBetween(String value1, String value2) {
            addCriterion("MILESTONE_CONTENT not between", value1, value2, "milestoneContent");
            return (Criteria) this;
        }

        public Criteria andMilestoneOpenTimeIsNull() {
            addCriterion("MILESTONE_OPEN_TIME is null");
            return (Criteria) this;
        }

        public Criteria andMilestoneOpenTimeIsNotNull() {
            addCriterion("MILESTONE_OPEN_TIME is not null");
            return (Criteria) this;
        }

        public Criteria andMilestoneOpenTimeEqualTo(Date value) {
            addCriterion("MILESTONE_OPEN_TIME =", value, "milestoneOpenTime");
            return (Criteria) this;
        }

        public Criteria andMilestoneOpenTimeNotEqualTo(Date value) {
            addCriterion("MILESTONE_OPEN_TIME <>", value, "milestoneOpenTime");
            return (Criteria) this;
        }

        public Criteria andMilestoneOpenTimeGreaterThan(Date value) {
            addCriterion("MILESTONE_OPEN_TIME >", value, "milestoneOpenTime");
            return (Criteria) this;
        }

        public Criteria andMilestoneOpenTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("MILESTONE_OPEN_TIME >=", value, "milestoneOpenTime");
            return (Criteria) this;
        }

        public Criteria andMilestoneOpenTimeLessThan(Date value) {
            addCriterion("MILESTONE_OPEN_TIME <", value, "milestoneOpenTime");
            return (Criteria) this;
        }

        public Criteria andMilestoneOpenTimeLessThanOrEqualTo(Date value) {
            addCriterion("MILESTONE_OPEN_TIME <=", value, "milestoneOpenTime");
            return (Criteria) this;
        }

        public Criteria andMilestoneOpenTimeIn(List<Date> values) {
            addCriterion("MILESTONE_OPEN_TIME in", values, "milestoneOpenTime");
            return (Criteria) this;
        }

        public Criteria andMilestoneOpenTimeNotIn(List<Date> values) {
            addCriterion("MILESTONE_OPEN_TIME not in", values, "milestoneOpenTime");
            return (Criteria) this;
        }

        public Criteria andMilestoneOpenTimeBetween(Date value1, Date value2) {
            addCriterion("MILESTONE_OPEN_TIME between", value1, value2, "milestoneOpenTime");
            return (Criteria) this;
        }

        public Criteria andMilestoneOpenTimeNotBetween(Date value1, Date value2) {
            addCriterion("MILESTONE_OPEN_TIME not between", value1, value2, "milestoneOpenTime");
            return (Criteria) this;
        }

        public Criteria andMilestoneCompleteTimeIsNull() {
            addCriterion("MILESTONE_COMPLETE_TIME is null");
            return (Criteria) this;
        }

        public Criteria andMilestoneCompleteTimeIsNotNull() {
            addCriterion("MILESTONE_COMPLETE_TIME is not null");
            return (Criteria) this;
        }

        public Criteria andMilestoneCompleteTimeEqualTo(Date value) {
            addCriterion("MILESTONE_COMPLETE_TIME =", value, "milestoneCompleteTime");
            return (Criteria) this;
        }

        public Criteria andMilestoneCompleteTimeNotEqualTo(Date value) {
            addCriterion("MILESTONE_COMPLETE_TIME <>", value, "milestoneCompleteTime");
            return (Criteria) this;
        }

        public Criteria andMilestoneCompleteTimeGreaterThan(Date value) {
            addCriterion("MILESTONE_COMPLETE_TIME >", value, "milestoneCompleteTime");
            return (Criteria) this;
        }

        public Criteria andMilestoneCompleteTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("MILESTONE_COMPLETE_TIME >=", value, "milestoneCompleteTime");
            return (Criteria) this;
        }

        public Criteria andMilestoneCompleteTimeLessThan(Date value) {
            addCriterion("MILESTONE_COMPLETE_TIME <", value, "milestoneCompleteTime");
            return (Criteria) this;
        }

        public Criteria andMilestoneCompleteTimeLessThanOrEqualTo(Date value) {
            addCriterion("MILESTONE_COMPLETE_TIME <=", value, "milestoneCompleteTime");
            return (Criteria) this;
        }

        public Criteria andMilestoneCompleteTimeIn(List<Date> values) {
            addCriterion("MILESTONE_COMPLETE_TIME in", values, "milestoneCompleteTime");
            return (Criteria) this;
        }

        public Criteria andMilestoneCompleteTimeNotIn(List<Date> values) {
            addCriterion("MILESTONE_COMPLETE_TIME not in", values, "milestoneCompleteTime");
            return (Criteria) this;
        }

        public Criteria andMilestoneCompleteTimeBetween(Date value1, Date value2) {
            addCriterion("MILESTONE_COMPLETE_TIME between", value1, value2, "milestoneCompleteTime");
            return (Criteria) this;
        }

        public Criteria andMilestoneCompleteTimeNotBetween(Date value1, Date value2) {
            addCriterion("MILESTONE_COMPLETE_TIME not between", value1, value2, "milestoneCompleteTime");
            return (Criteria) this;
        }

        public Criteria andMilestoneChargeIdIsNull() {
            addCriterion("MILESTONE_CHARGE_ID is null");
            return (Criteria) this;
        }

        public Criteria andMilestoneChargeIdIsNotNull() {
            addCriterion("MILESTONE_CHARGE_ID is not null");
            return (Criteria) this;
        }

        public Criteria andMilestoneChargeIdEqualTo(Integer value) {
            addCriterion("MILESTONE_CHARGE_ID =", value, "milestoneChargeId");
            return (Criteria) this;
        }

        public Criteria andMilestoneChargeIdNotEqualTo(Integer value) {
            addCriterion("MILESTONE_CHARGE_ID <>", value, "milestoneChargeId");
            return (Criteria) this;
        }

        public Criteria andMilestoneChargeIdGreaterThan(Integer value) {
            addCriterion("MILESTONE_CHARGE_ID >", value, "milestoneChargeId");
            return (Criteria) this;
        }

        public Criteria andMilestoneChargeIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("MILESTONE_CHARGE_ID >=", value, "milestoneChargeId");
            return (Criteria) this;
        }

        public Criteria andMilestoneChargeIdLessThan(Integer value) {
            addCriterion("MILESTONE_CHARGE_ID <", value, "milestoneChargeId");
            return (Criteria) this;
        }

        public Criteria andMilestoneChargeIdLessThanOrEqualTo(Integer value) {
            addCriterion("MILESTONE_CHARGE_ID <=", value, "milestoneChargeId");
            return (Criteria) this;
        }

        public Criteria andMilestoneChargeIdIn(List<Integer> values) {
            addCriterion("MILESTONE_CHARGE_ID in", values, "milestoneChargeId");
            return (Criteria) this;
        }

        public Criteria andMilestoneChargeIdNotIn(List<Integer> values) {
            addCriterion("MILESTONE_CHARGE_ID not in", values, "milestoneChargeId");
            return (Criteria) this;
        }

        public Criteria andMilestoneChargeIdBetween(Integer value1, Integer value2) {
            addCriterion("MILESTONE_CHARGE_ID between", value1, value2, "milestoneChargeId");
            return (Criteria) this;
        }

        public Criteria andMilestoneChargeIdNotBetween(Integer value1, Integer value2) {
            addCriterion("MILESTONE_CHARGE_ID not between", value1, value2, "milestoneChargeId");
            return (Criteria) this;
        }

        public Criteria andMilestonePublisherIdIsNull() {
            addCriterion("MILESTONE_PUBLISHER_ID is null");
            return (Criteria) this;
        }

        public Criteria andMilestonePublisherIdIsNotNull() {
            addCriterion("MILESTONE_PUBLISHER_ID is not null");
            return (Criteria) this;
        }

        public Criteria andMilestonePublisherIdEqualTo(Integer value) {
            addCriterion("MILESTONE_PUBLISHER_ID =", value, "milestonePublisherId");
            return (Criteria) this;
        }

        public Criteria andMilestonePublisherIdNotEqualTo(Integer value) {
            addCriterion("MILESTONE_PUBLISHER_ID <>", value, "milestonePublisherId");
            return (Criteria) this;
        }

        public Criteria andMilestonePublisherIdGreaterThan(Integer value) {
            addCriterion("MILESTONE_PUBLISHER_ID >", value, "milestonePublisherId");
            return (Criteria) this;
        }

        public Criteria andMilestonePublisherIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("MILESTONE_PUBLISHER_ID >=", value, "milestonePublisherId");
            return (Criteria) this;
        }

        public Criteria andMilestonePublisherIdLessThan(Integer value) {
            addCriterion("MILESTONE_PUBLISHER_ID <", value, "milestonePublisherId");
            return (Criteria) this;
        }

        public Criteria andMilestonePublisherIdLessThanOrEqualTo(Integer value) {
            addCriterion("MILESTONE_PUBLISHER_ID <=", value, "milestonePublisherId");
            return (Criteria) this;
        }

        public Criteria andMilestonePublisherIdIn(List<Integer> values) {
            addCriterion("MILESTONE_PUBLISHER_ID in", values, "milestonePublisherId");
            return (Criteria) this;
        }

        public Criteria andMilestonePublisherIdNotIn(List<Integer> values) {
            addCriterion("MILESTONE_PUBLISHER_ID not in", values, "milestonePublisherId");
            return (Criteria) this;
        }

        public Criteria andMilestonePublisherIdBetween(Integer value1, Integer value2) {
            addCriterion("MILESTONE_PUBLISHER_ID between", value1, value2, "milestonePublisherId");
            return (Criteria) this;
        }

        public Criteria andMilestonePublisherIdNotBetween(Integer value1, Integer value2) {
            addCriterion("MILESTONE_PUBLISHER_ID not between", value1, value2, "milestonePublisherId");
            return (Criteria) this;
        }

        public Criteria andMilestoneProIdIsNull() {
            addCriterion("MILESTONE_PRO_ID is null");
            return (Criteria) this;
        }

        public Criteria andMilestoneProIdIsNotNull() {
            addCriterion("MILESTONE_PRO_ID is not null");
            return (Criteria) this;
        }

        public Criteria andMilestoneProIdEqualTo(Integer value) {
            addCriterion("MILESTONE_PRO_ID =", value, "milestoneProId");
            return (Criteria) this;
        }

        public Criteria andMilestoneProIdNotEqualTo(Integer value) {
            addCriterion("MILESTONE_PRO_ID <>", value, "milestoneProId");
            return (Criteria) this;
        }

        public Criteria andMilestoneProIdGreaterThan(Integer value) {
            addCriterion("MILESTONE_PRO_ID >", value, "milestoneProId");
            return (Criteria) this;
        }

        public Criteria andMilestoneProIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("MILESTONE_PRO_ID >=", value, "milestoneProId");
            return (Criteria) this;
        }

        public Criteria andMilestoneProIdLessThan(Integer value) {
            addCriterion("MILESTONE_PRO_ID <", value, "milestoneProId");
            return (Criteria) this;
        }

        public Criteria andMilestoneProIdLessThanOrEqualTo(Integer value) {
            addCriterion("MILESTONE_PRO_ID <=", value, "milestoneProId");
            return (Criteria) this;
        }

        public Criteria andMilestoneProIdIn(List<Integer> values) {
            addCriterion("MILESTONE_PRO_ID in", values, "milestoneProId");
            return (Criteria) this;
        }

        public Criteria andMilestoneProIdNotIn(List<Integer> values) {
            addCriterion("MILESTONE_PRO_ID not in", values, "milestoneProId");
            return (Criteria) this;
        }

        public Criteria andMilestoneProIdBetween(Integer value1, Integer value2) {
            addCriterion("MILESTONE_PRO_ID between", value1, value2, "milestoneProId");
            return (Criteria) this;
        }

        public Criteria andMilestoneProIdNotBetween(Integer value1, Integer value2) {
            addCriterion("MILESTONE_PRO_ID not between", value1, value2, "milestoneProId");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}